package com.egoo.ticket.server.dao;

import com.egoo.ticket.server.pojo.entity.WorkOrderRelation;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author donny
 * @since 2020-04-23
 */
@Component
public interface WorkOrderRelationMapper {

	/**
	 * 查询 WorkOrderRelation
	 * @param workOrderRelation
	 * @return
	 */

	WorkOrderRelation selectWorkOrderRelation(WorkOrderRelation workOrderRelation);

	/**
	 * 更新WorkOrderRelation
	 * @param workOrderRelation
	 * @return
	 */
	Integer updateWorkOrderRelation(WorkOrderRelation workOrderRelation);

	/**
	 * 添加WorkOrderRelation
	 * @param workOrderRelation
	 * @return
	 */
	Integer insertWorkOrderRelation(WorkOrderRelation workOrderRelation);

	/**
	 * 动态更新WorkOrderRelation
	 * @param workOrderRelation
	 * @return
	 */
	Integer updateDynamic(WorkOrderRelation workOrderRelation);

	/**
	 * 查询集合
	 * @param map
	 * @return
	 */
	List<WorkOrderRelation> selectWorkOrderRelations(Map<String, Object> map);

	/**
	 * 非主键更新
	 * @param workOrderRelation
	 * @return
	 */
	Integer updateByNotPrimary(WorkOrderRelation workOrderRelation);
}
